package com.ruoyi.driver.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 司机对象 t_driver
 * 
 * @author guguguy
 * @date 2025-03-20
 */
public class TDriver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 司机ID */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像url */
    @Excel(name = "头像url")
    private String avatar;

    /** 是否实名认证 */
    @Excel(name = "是否实名认证")
    private Integer isAuthenticated;

    /** 禁用状态 */
    @Excel(name = "禁用状态")
    private Integer status;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 上次提现时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次提现时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastWithdrawalTime;

    /** 司机评分 */
    @Excel(name = "司机评分")
    private BigDecimal driverRating;

    /** 等级ID */
    @Excel(name = "等级ID")
    private Long levelId;

    /** 等级名称 */
    @Excel(name = "等级名称")
    private String levelName;

    /** 司机等级信息 */
    private List<TLevel> tLevelList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setIsAuthenticated(Integer isAuthenticated) 
    {
        this.isAuthenticated = isAuthenticated;
    }

    public Integer getIsAuthenticated() 
    {
        return isAuthenticated;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setLastWithdrawalTime(Date lastWithdrawalTime) 
    {
        this.lastWithdrawalTime = lastWithdrawalTime;
    }

    public Date getLastWithdrawalTime() 
    {
        return lastWithdrawalTime;
    }
    public void setDriverRating(BigDecimal driverRating) 
    {
        this.driverRating = driverRating;
    }

    public BigDecimal getDriverRating() 
    {
        return driverRating;
    }
    public void setLevelId(Long levelId) 
    {
        this.levelId = levelId;
    }

    public String getLevelName(){ return levelName; }
    public void setLevelName(String levelName) { this.levelName = levelName;}

    public Long getLevelId() 
    {
        return levelId;
    }

    public List<TLevel> getTLevelList()
    {
        return tLevelList;
    }

    public void setTLevelList(List<TLevel> tLevelList)
    {
        this.tLevelList = tLevelList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("name", getName())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("isAuthenticated", getIsAuthenticated())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("balance", getBalance())
            .append("lastWithdrawalTime", getLastWithdrawalTime())
            .append("driverRating", getDriverRating())
            .append("levelId", getLevelId())
            .append("tLevelList", getTLevelList())
            .append("levelName", getLevelName())
            .toString();
    }
}
